const Koa = require('koa')
const app = new Koa()
const server = require('koa-static')
app.use((ctx, next) => {
    console.log(ctx.url)
    next()
})
app.use(server(__dirname + 'static', {extensions: ['html']}))
app.listen(3001, () => {
    console.log('server running at 3001')
})